home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2002 #3 / Amiga Plus CD - 2002 - No. 03.iso / AmigaPlus / AmigaOS / SDL_Teil1 / SDL1 / erstes.c < prev    next >
Encoding:
C/C++ Source or Header  |  2003-02-23  |  338 b   |  18 lines

  1. #include <stdlib.h>
  2. #include "SDL.h"
  3.  
  4. int main()
  5. {
  6.   printf("Initialisiere SDL...\n");
  7.  
  8.   if (SDL_Init(SDL_INIT_VIDEO) < 0)
  9.   {
  10.     printf("SDL konnte nicht initialisiert werden: %s\n", SDL_GetError());
  11.     exit(-1);
  12.   }
  13.  
  14.   printf("SDL erfolgreich initialisiert!\n");
  15.   printf("Verlasse SDL...\n");
  16.  
  17.   atexit(SDL_Quit);
  18. }